﻿namespace OpenCompiler.Scanning.Scanners
{
	public class ArithmeticScanner : StringMatchTokenScanner
	{
		public ArithmeticScanner()
		{
			this.AddGrammar(Operand.Increase, "++");
			this.AddGrammar(Operand.Decrease, "--");
			this.AddGrammar(Operand.Plus, "+");
			this.AddGrammar(Operand.Minus, "-");
			this.AddGrammar(Operand.Multiply, "*");
			this.AddGrammar(Operand.Divide, "/");
			this.AddGrammar(Operand.ShiftLeft, "<<");
			this.AddGrammar(Operand.ShiftRight, ">>");

			this.Initialize();
		}
	}
}
